<?php # $this->load->view('layouts/_flash'); ?>
<?if(isset($system_message))echo $system_message;?>
<?

			$old_password 	= set_value('old_password')   == FALSE ? NULL  : set_value('old_password') ;
			$new_password 	= set_value('new_password')   == FALSE ? NULL  : set_value('new_password') ;
			$c_new_password = set_value('c_new_password') == FALSE ? NULL  : set_value('c_new_password') ;
			$hidden = array('id'=>$id);
?>
<div class="ui-corner-all contentContainer" style="background-color: #fff;">

<div style="position: relative;">

<div style="float: left;">
<div class="ui-corner-top side_menu" style="width: 700px;">Update user</div>
<div style="border:1px  solid #286bcc;">
<div>&nbsp;</div>
<div>
<?echo validation_errors();?>

<?php 
echo form_open('users/changepass/'.$id);
?>

<fieldset>
    <div style="position: relative;">
        <div style="float: left; width: 100px; line-height: 3;"><span class="span"> Old Password</span></div>
        <div style="float: left; line-height: 3;">
        <span class="span">
            <?php
            $opt = 'class="ui-corner-all" style="border:#ccc 2px solid;" maxlength="255"';
            echo form_password('old_password', $old_password, $opt);
            ?>
        </span>
        </div>
        <div class="clearfloat"></div>
		
		<div style="float: left; width: 100px; line-height: 3;"><span class="span"> New Password</span></div>
        <div style="float: left; line-height: 3;">
        <span class="span">
            <?php
            $opt = 'class="ui-corner-all" style="border:#ccc 2px solid;" maxlength="255"';
            echo form_password('new_password', $new_password, $opt);
            ?>
        </span>
        </div>
        <div class="clearfloat"></div>
		
		<div style="float: left; width: 100px; line-height: 3;"><span class="span">Confirm New Password</span></div>
        <div style="float: left; line-height: 3;">
        <span class="span">
            <?php
            $opt = 'class="ui-corner-all" style="border:#ccc 2px solid;" maxlength="255"';
            echo form_password('c_new_password', $c_new_password, $opt);
            ?>
        </span>
        </div>
        <div class="clearfloat"></div>
		
		
        <div style="float: left; width: 100px; line-height: 3;"><span class="span"> &nbsp; </span></div>
        <div style="float: left; line-height: 3;">
        <span class="span">
            <?php
            $opt4 = 'class="ui-corner-all submit"';
            echo form_hidden($hidden);
			echo form_submit('', 'update', $opt4);
			
            ?>
        </span>
        </div>
        <div class="clearfloat"></div>
    </div>
</fieldset>

<?php
echo form_close();
?>

</div>
<div class="clearfloat"></div>
</div>
<div>&nbsp;</div>
</div>
</div>
<div class="clearfloat"></div>
</div>

</div>